package ch2;

import java.util.Scanner;

public class GedeBahe {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int num = 0;
		// 大于6的偶数
		boolean ok = true;
		while (ok == true) {
			System.out.println("输入：");
			num = in.nextInt();
			if (num >= 6 && num % 2 == 0)
				ok = false;
		}
		// while (true) {
		// System.out.println("输入：");
		// num = in.nextInt();
		// if (num >= 6 && num % 2 == 0)
		// break;
		// }
		System.out.println(num + " 正确");
	}

}
